package com.dolphin.common.constant;

public enum CommonStatusEnum {
    /**
     * 验证码错误 1000-1099
     */
    CALL_USER_ADD_ERROR(1000,"调用新增用户异常"),
    VERIFICATION_CODE_ERROR(1099,"验证码不正确"),
    /**
     * token错误 1100-1199
     */
    TOKEN_ERROR(1199,"token错误"),

    /**
     * 用户提示：1200-1299
     */
    USER_NOT_EXIST(1200,"当前用户不存在"),
    /**
     * 计价规则：1300-1399
     */
    PRICE_RULE_EMPTY(1300,"计价规则不存在" ),
    PRICE_RULE_EXISTS(1301,"计价规则已存在,不允许添加"),
    PRICE_RULE_NOT_EDIT(1302,"计价规则没有变化"),
    PRICE_RULE_CHANGED(1303,"计价规则有变化"),
    /**
     * 地图信息：1400-1499
     */
    MAP_DISTRICT_ERROR(1400,"请求地图错误"),
    /**
     * 司机和车辆：1500-1599
     */
    DRIVER_CAR_BIND_NOT_EXISTS(1500,"司机和车辆绑定关系不存在"),
    DRIVER_NOT_EXISTS(1501,"司机不存在"),
    DRIVER_CAR_BIND_EXISTS(1502,"司机和车辆绑定关系已存在,请勿重复绑定"),
    DRIVER_BIND_EXISTS(1503,"司机已经被绑定了，请勿重复绑定"),
    CAR_BIND_EXISTS(1504,"车辆已经被绑定了，请勿重复绑定"),
    CITY_DRIVER_EMPTY(1505,"当前城市没有可用司机"),
    AVAILABLE_DRIVER_EMPTY(1506,"没有可用司机"),
    CAR_NOT_EXIST(1507,"车不存在"),
    DRIVER_STATUS_UPDATE_ERROR(1508,"司机状态更新失败"),

    /**
     * 订单：1600-1699
     */
    ORDER_GOING_ON(1600,"有正在进行的订单"),

    DEVICE_IS_BLACK(1601,"该设备超过下单次数"),

    CITY_SERVICE_NOT_SERVICE(1602,"当前城市不提供叫车服务"),

    ORDER_CANCEL_ERROR(1603,"取消订单失败"),
    ORDER_NOT_EXISTS(1604,"订单不存在"),
    ORDER_CAN_NOT_GRAB(1605,"订单不能被抢"),

    ORDER_GRABING(1606,"订单正在被抢"),
    ORDER_UPDATE_ERROR(1607,"更新订单失败"),

    /**
     * 统一验证框架提示：1700-1799
     */
    VALIDATION_EXCEPTION(1700,"统一验证框架异常"),
    /**
     * 成功
     */
    SUCCESS(1,"success"),
    /**
     * 失败
     */
    FAIL(0,"fail");



    private int code;
    private String value;

    CommonStatusEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
